Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p2p: migrate secret_connection from tmkms #696

Merged
merged 10 commits into from
Nov 27, 2020

Conversation

melekes
Copy link
Contributor

@melekes melekes commented Nov 20, 2020

Refs #691

NOTE: this is a copy of the secret_connection from tmkms with eyre errors and without generate_key function.

  • Referenced an issue explaining the need for the change
  • Updated all relevant documentation in docs
  • Updated all code comments where relevant
  • Wrote tests
  • Updated CHANGELOG.md

@codecov-io
Copy link

codecov-io commented Nov 20, 2020

Codecov Report

Merging #696 (b689da8) into master (0fc7f40) will decrease coverage by 2.0%.
The diff coverage is 21.0%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master    #696     +/-   ##
========================================
- Coverage    42.1%   40.1%   -2.1%     
========================================
  Files         191     200      +9     
  Lines       12597   12669     +72     
  Branches     3227    3182     -45     
========================================
- Hits         5312    5088    -224     
- Misses       6939    7258    +319     
+ Partials      346     323     -23     
Impacted Files Coverage Δ
p2p/src/error.rs 0.0% <0.0%> (ø)
p2p/src/secret_connection.rs 0.0% <0.0%> (ø)
p2p/src/secret_connection/amino_types.rs 0.0% <0.0%> (ø)
p2p/src/secret_connection/kdf.rs 0.0% <0.0%> (ø)
p2p/src/secret_connection/protocol.rs 0.0% <0.0%> (ø)
p2p/src/secret_connection/public_key.rs 61.2% <61.2%> (ø)
p2p/src/secret_connection/nonce.rs 76.6% <76.6%> (ø)
p2p/src/lib.rs 100.0% <100.0%> (ø)
light-client/src/store.rs 52.0% <0.0%> (-20.0%) ⬇️
rpc/src/request.rs 25.0% <0.0%> (-17.9%) ⬇️
... and 67 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0fc7f40...b689da8. Read the comment docs.

@melekes melekes marked this pull request as ready for review November 20, 2020 14:00
@xla xla requested review from xla, romac and brapse and removed request for romac November 20, 2020 14:13
Copy link
Contributor

@xla xla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dope! Had a first pass mostly for the crate setup. Will look deeper into the code in a second pass.

@melekes
Copy link
Contributor Author

melekes commented Nov 21, 2020

Thanks for the speedy feedback everyone 🚀

@cargo-dep-bot
Copy link

cargo-dep-bot bot commented Nov 27, 2020

This PR made the following dependency changes:

Added Packages (Duplicate versions in '()'):
	aead 0.3.2
	chacha20 0.6.0
	chacha20poly1305 0.7.1
	cipher 0.2.5
	crypto-mac 0.10.0
	eyre 0.6.3
	hkdf 0.10.0
	hmac 0.10.1
	indenter 0.3.0
	keccak 0.1.0
	merlin 2.0.0
	poly1305 0.6.1
	tendermint-p2p 0.1.0
	universal-hash 0.4.0
	x25519-dalek 1.1.0

@melekes
Copy link
Contributor Author

melekes commented Nov 27, 2020

Made amino optional here.

Copy link
Contributor

@xla xla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👛 🎣 ⛓ ✴️

@brapse brapse merged commit ab81ed2 into informalsystems:master Nov 27, 2020
@melekes melekes deleted the anton/691-secret-connection branch November 27, 2020 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants